<?php
class Sosweb_Util_Filter_DecimalFilter implements Zend_Filter_Interface
{
	public function filter($value)
    {
    	if ($value != null && strlen($value) > 0)
    	{
			$value = str_replace(',', '.', $value);
    		$new_value = round($value, 2);
    	}
    	else
    	{
    		$new_value = null;
    	}

        return $new_value;    	
    }
}